<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<script type="text/javascript">
var jumpMsgs = null;
var jumps = new Array(-1,-4,-7,-10,-7,-4,-1);
var firstJumpIndex = 0;
function initJumpMsg(){
	var jumpMsg = document.getElementById("jumpMessage");
	if(jumpMsg!=null){
		var ostrHTML = jumpMsg.innerHTML;
		var nstrHTML = "";
		for(var i=0;i<ostrHTML.length;i+=1){
			nstrHTML += "<span id=\"jumpMsg"+i+"\" style=\"position:relative;\">" + ostrHTML.charAt(i) + "</span>";
		}
		jumpMsg.innerHTML = nstrHTML;
		jumpMsgs = new Array();
		for(var i=0;i<ostrHTML.length;i+=1){
			jumpMsgs[i] = document.getElementById("jumpMsg"+i);
		}
	}
}
function jumpText(){
	initJumpMsg();
	setInterval(function(){
		for(var i=0;i<jumpMsgs.length;i+=1){
			jumpMsgs[i].style.top = jumps[(firstJumpIndex+i)%7];
		}
		firstJumpIndex += 1;
	},150);
}
windowEvents.addEvent("load",jumpText);
</script>
<table width="100%" height="100%">
	<tr>
		<td align="center" valign="middle">
			<font color="#448ccb" id="jumpMessage" size="5">
				张三，欢迎使用实训机房管理系统。 </font>
		</td>
	</tr>
</table>